<?php
/*
 * @Author       : chaihao
 * @Date         : 2020-06-02 10:06:12
 * @FilePath     : /ai/models/VerificationCode.php
 */

namespace app\models;

use Yii;

/**
 * This is the model class for table "user.user".
 *
 */
class VerificationCode extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '`pltf.verification_code`';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['ID', 'code', 'type', 'userID', 'validtime', 'is_send'], 'integer'],
            [['send_to'], 'string'],
            [['createtime', 'updatetime', 'verificationtime'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'code' => 'Content',
            'type' => 'Type',
            'userID' => 'user ID',
            'validtime' => 'Vlidtime',
            'is_send' => 'Is Send',
            'send_to' => 'Send To',
            'createtime' => 'Createtime',
            'updatetime' => 'Updatetime',
            'verificationtime' => 'Verificationtime',
        ];
    }
}
